package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.adminDto.AdSensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dto.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author 石头
 * @description 针对表【wm_sensitive(敏感词信息表)】的数据库操作Service
 * @createDate 2022-06-24 17:09:15
 */
public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 敏感词查询列表
     *
     * @param dto
     * @return
     */
    ResponseResult findSensitiveList(SensitiveDto dto);

    /**
     * 敏感词删除
     *
     * @param id
     * @return
     */
    ResponseResult delSensitiveById(Integer id);

    /**
     * 敏感词新增
     *
     * @param dto
     * @return
     */
    ResponseResult saveSensitive(AdSensitiveDto dto);

    /**
     * 敏感词修改
     *
     * @param dto
     * @return
     */
    ResponseResult updateSensitive(AdSensitiveDto dto);
}
